const cache = {};
export default {
  getItem: function (key) {
    return cache[key];
  },
  setItem: function (key, value) {
    cache[key] = value;
  },
  clearItem: function (key) {
    cache[key] = undefined;
  },
  clear: function () {
    Object.keys(cache).map((key) => {
      cache[key] = undefined;
    });
  },
};
